﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace WeChatSDK.WeChatDto.Conversation.ReceivingMessage
{
    /// <summary>
    /// 事件消息
    /// </summary>
    [XmlRoot(Namespace = "", IsNullable = false, ElementName = "xml")]
    public class EventMessageDto:ReceivingMessageDto
    {
        /// <summary>
        /// 事件类型，有ENTER(进入会话)和LOCATION(地理位置)
        /// wxa_widget_data 表示是小程序Widget事件消息
        /// LOCATION 表示上报地理位置事件消息
        /// subscribe(订阅)、unsubscribe(取消订阅)事件消息
        /// subscribe 存在则为二维码事件消息
        /// SCAN 则为用户已关注时的二维码事件消息
        /// CLICK 则为点击菜单拉取消息时的事件消息
        /// VIEW 则为点击菜单跳转链接时的事件消息
        /// MASSSENDJOBFINISH  则为群发回调事件消息
        /// </summary>
        [XmlElement("Event", DataType = "string")]
        public string Event { get; set; }
    }
}
